var yq = require('art-template');
var fs = require('fs');
/* var message = `hello {{name}} will come to this world`;
var tem = yq.render(message, {
    name: 'mingtan'
}) 
console.log(tem);*/
fs.readFile('引擎.html', function (err, data) {
    if (err) {
        console.log('this file error');
    } else {
        //render接受字符串
        var tem = yq.render(data.toString(), {
            name: 'mingtan-23'
        })
        console.log(tem.toString());
    }
})
